Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Melanoma task #310

Open
wants to merge 40 commits into
base: main
Choose a base branch
from
Open

Melanoma task #310

wants to merge 40 commits into from

Conversation

cxzhang4
Copy link
Collaborator

@cxzhang4 cxzhang4 commented Nov 28, 2024

https://huggingface.co/datasets/carsonzhang/ISIC_2020_small

Should we delete the individual files on Hugging Face?

Edit: deleted

cxzhang4 and others added 30 commits October 20, 2024 21:35
Bumps [JamesIves/github-pages-deploy-action](https://github.com/jamesives/github-pages-deploy-action) from 4.6.8 to 4.6.9.
- [Release notes](https://github.com/jamesives/github-pages-deploy-action/releases)
- [Commits](JamesIves/github-pages-deploy-action@v4.6.8...v4.6.9)

---
updated-dependencies:
- dependency-name: JamesIves/github-pages-deploy-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Copy link
Member

@sebffischer sebffischer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like there is still some small cleanup tasks to be done (maybe I reviewed to early), but I already left some comments. Looking good!

R/TaskClassif_melanoma.R Outdated Show resolved Hide resolved
R/TaskClassif_melanoma.R Show resolved Hide resolved
R/TaskClassif_melanoma.R Outdated Show resolved Hide resolved
R/TaskClassif_melanoma.R Outdated Show resolved Hide resolved
old = c("image", "patient", "anatom_site_general"),
new = c("image_name", "patient_id", "anatom_site_general_challenge")
)[, split := "test"]
metadata = rbind(training_metadata, test_metadata, fill = TRUE)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is being filled here?

R/TaskClassif_melanoma.R Outdated Show resolved Hide resolved
R/TaskClassif_melanoma.R Outdated Show resolved Hide resolved
R/TaskClassif_melanoma.R Outdated Show resolved Hide resolved
attic/03-process_melanoma.R Outdated Show resolved Hide resolved
tests/testthat/test_TaskClassif_melanoma.R Show resolved Hide resolved
R/TaskClassif_melanoma.R Outdated Show resolved Hide resolved
@sebffischer
Copy link
Member

And yes, I would delete the individual files on huggingface

…y_imagenet. Probably need to construct full file paths first
@@ -83,7 +83,7 @@ load_task_melanoma = function(id = "melanoma") {
cached_constructor = function(backend) {
data = cached(constructor_melanoma, "datasets", "melanoma")$data

data[, benign_malignant := factor(benign_malignant, levels = c("benign", "malignant"))]
data[, outcome := factor(outcome, levels = c("benign", "malignant"))]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the static analyzer will not know that outcome is a valid variable here (this is generally an issue with NSE)
you can use outcome := factor(get("outcome"), ...) as a workaround

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this change, the linter gives the following warning: no visible binding for global variable 'outcome'. Using set() does also. Is this an issue? If I understand correctly, that means the problem is still there

Screenshot 2024-12-02 at 15 05 11

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is also not what I wrote. I said get("outcome")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants